<div class="animated fadeInRight ecommerce">
    <div class="row">
        <div class="col-md-1 padding-r-0">
            <div class=" border-radius ">
                <div class="margin-xs-r  treeview ">
                    <ul class="list-group text-center border-radius">
                        <li class="list-group-item node-orgTree "
                            v-for="(item,index) in carInoutManageInfo.parkingAreas" :key="index"
                            @click="_swatchParkingArea(item)"
                            :class="{'vc-node-selected':carInoutManageInfo.conditions.paId == item.paId}">
                            {{item.num}}
                        </li>
                    </ul>
                </div>
            </div>
        </div>
        <div class="col-md-11">
            <div class="ibox ">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="查询条件" namespace="carInoutManage"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;">

                    </div>
                </div>
                <div class="ibox-content">
                    <div class="row">
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input v-model="carInoutManageInfo.conditions.carNum" type="text"
                                    :placeholder="vc.i18n('必填，请填写车牌号','carInoutManage')" class="form-control">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <select class="custom-select" v-model="carInoutManageInfo.conditions.state">
                                <option selected value="">{{vc.i18n('请选择车辆状态','carInoutManage')}}</option>
                                <option value="100300">{{vc.i18n('进场状态','carInoutManage')}}</option>
                                <option value="100400">{{vc.i18n('支付完成','carInoutManage')}}</option>
                                <option value="100500">{{vc.i18n('离场状态','carInoutManage')}}</option>
                                <option value="100600">{{vc.i18n('支付超时重新支付','carInoutManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <select class="custom-select" v-model="carInoutManageInfo.conditions.carType">
                                <option selected value="">{{vc.i18n('请选择车牌类型','carInoutManage')}}</option>
                                <option value="T">{{vc.i18n('临时车','carInoutManage')}}</option>
                                <option value="S">{{vc.i18n('出售车辆','carInoutManage')}}</option>
                                <option value="H">{{vc.i18n('月租车','carInoutManage')}}</option>
                                <option value="W">{{vc.i18n('白名单','carInoutManage')}}</option>
                                <option value="B">{{vc.i18n('黑名单','carInoutManage')}}</option>
                                <option value="I">{{vc.i18n('内部车','carInoutManage')}}</option>
                                <option value="NM">{{vc.i18n('免费车','carInoutManage')}}</option>
                            </select>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input v-model="carInoutManageInfo.conditions.startTime" type="text"
                                    :placeholder="vc.i18n('请填写开始时间','carInoutManage')"
                                    class="form-control carInoutsStartTime">
                            </div>
                        </div>
                        <div class="col-sm-2">
                            <div class="form-group">
                                <input v-model="carInoutManageInfo.conditions.endTime" type="text"
                                    :placeholder="vc.i18n('请填写结束时间','carInoutManage')"
                                    class="form-control carInoutsEndTime">
                            </div>
                        </div>

                        <div class="col-sm-2">
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_queryCarInoutMethod()">
                                <vc:i18n name="查询" namespace="carInoutManage"></vc:i18n>
                            </button>
                            <button type="button" class="btn btn-primary btn-sm" v-on:click="_resetCarInoutMethod()">
                                <vc:i18n name="重置" namespace="carInoutManage"></vc:i18n>
                            </button>
                        </div>
                    </div>
                </div>
            </div>

            <div class="ibox">
                <div class="ibox-title">
                    <h5>
                        <vc:i18n name="进出场记录" namespace="carInoutManage"></vc:i18n>
                    </h5>
                    <div class="ibox-tools" style="top:10px;"></div>
                </div>
                <div class="ibox-content">
                    <table class="footable table table-stripped toggle-arrow-tiny" data-page-size="15">
                        <thead>
                            <tr>
                                <th class="text-center">
                                    <vc:i18n name="进场图" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="进出场编号" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="车辆状态" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="车牌号" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="停车场" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="计费规则" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="车牌类型" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="进场时间" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="出场时间" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="停车时间" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="收费金额" namespace="carInoutManage"></vc:i18n>
                                </th>
                                <th class="text-center">
                                    <vc:i18n name="说明" namespace="carInoutManage"></vc:i18n>
                                </th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr v-for="carIn in carInoutManageInfo.carInouts">
                                <td class="text-center" style="white-space: nowrap;">
                                    <img style="width: 60px; height: 60px;" class="border-radius" v-if="carIn.photoJpg"
                                        v-bind:src="carIn.photoJpg" v-on:click="_carInoutOpenFile(carIn.photoJpg)" />
                                    <img style="width: 60px; height: 60px;" class="border-radius" v-else
                                        src="/img/noPhoto.jpg" />
                                </td>
                                <td class="text-center">{{carIn.inoutId}}</td>
                                <td class="text-center">{{carIn.carInout == '3306'?'进场':'出场'}}({{carIn.stateName}})
                                </td>
                                <td class="text-center">{{carIn.carNum}}
                                </td>
                                <td class="text-center">{{carIn.paNum}}</td>
                                <td class="text-center">
                                    {{carIn.feeName}}
                                </td>
                                <td class="text-center">{{carIn.carTypeName}}</td>
                                <td class="text-center">{{carIn.inTime}}</td>
                                <td class="text-center" v-if="carIn.carInout != '3307'">-</td>
                                <td class="text-center" v-else>{{carIn.outTime}}</td>
                                <td class="text-center">{{carIn.hours}}
                                    <span>
                                        <vc:i18n name="小时" namespace="carInoutManage"></vc:i18n>
                                    </span>{{carIn.min}}
                                    <span>
                                        <vc:i18n name="分" namespace="carInoutManage"></vc:i18n>
                                    </span>
                                </td>
                                <td class="text-center" v-if="carIn.carType != 'T'">-</td>
                                <!-- <td class="text-center" v-else-if="carIn.carInout != '3307">{{carIn.payCharge}}</td> -->
                                <!-- <td class="text-center" v-else>{{carIn.realCharge}}</td> -->
                                <td class="text-center" v-else>{{carIn.payCharge}}
                                    <span
                                        v-if="carIn.inState == '100300' || carIn.inState == '100400' ||  carIn.inState == '100600'">
                                        (<a href="javascript:void(0)" @click="_carInoutTempCarPayFee(carIn)">出场</a>)
                                    </span>
                                </td>
                                <td class="text-center">{{carIn.remark}}</td>
                        </tbody>
                    </table>
                    <!-- 分页 -->
                    <vc:create path="frame/pagination"></vc:create>
                </div>
            </div>
        </div>
    </div>
</div>